package com.googlecode.garbagecan.test.rhino;

import org.mozilla.javascript.ScriptableObject;

public class Calculator extends ScriptableObject {

	public Calculator() {

	}

	@Override
	public String getClassName() {
		return "Calculator";
	}

	public int jsFunction_add(int a, int b) {
		return a + b;
	}

	public int jsFunction_subtract(int a, int b) {
		return a - b;
	}

	public int jsFunction_multiply(int a, int b) {
		return a * b;
	}

	public int jsFunction_divide(int a, int b) {
		return a / b;
	}

	public int jsFunction_remainder(int a, int b) {
		return a % b;
	}
}
